package com.ljxy.score.controller.myController;
import com.ljxy.score.common.Result;
import com.ljxy.score.entity.domain.myclass;
import com.ljxy.score.service.myclassService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/my_class")
public class MyClassController {
    /**
     * 获取到所有的班级
     */
    @Resource
    private myclassService myclassService;
    @RequestMapping("/all")
    public Result<?> all() {
        List<myclass> list = myclassService.list();
        return Result.success(list);
    }

}
